package com.example.shuiyin.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class SubscribeRequest {
    
    @NotBlank(message = "套餐ID不能为空")
    @Pattern(regexp = "^\\d+$", message = "套餐ID必须为数字")
    private String planId;
    
    @NotBlank(message = "支付方式不能为空")
    @Pattern(regexp = "^(alipay|wechat|creditcard)$", message = "支付方式只能是alipay、wechat或creditcard")
    private String paymentMethod; // alipay/wechat/creditcard
    
    @NotBlank(message = "计费周期不能为空")
    @Pattern(regexp = "^(monthly|yearly)$", message = "计费周期只能是monthly或yearly")
    private String billingCycle; // monthly/yearly
} 